import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/font/iconfont.css'
import './assets/css/base.css'
import loading from './plugins/loading/index'
import {
  Icon, Tabbar, TabbarItem, Search, Swipe, SwipeItem, Grid, GridItem,
  Card, PullRefresh, List, NavBar, GoodsAction, GoodsActionIcon, GoodsActionButton,
  Popup, Stepper, Button, Form, Field, Toast, Checkbox, CheckboxGroup, SwipeCell, SubmitBar,
  Sidebar, SidebarItem, ContactCard, AddressEdit, ContactList, ContactEdit, Lazyload
} from 'vant'
Vue.use(loading)
Vue.use(Icon)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Search)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(Card)
  .use(PullRefresh)
  .use(List)
  .use(NavBar)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Popup)
  .use(Stepper)
  .use(Button)
  .use(Form)
  .use(Field)
  .use(Toast)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(SwipeCell)
  .use(SubmitBar)
  .use(Sidebar)
  .use(SidebarItem)
  .use(ContactCard)
  .use(AddressEdit)
  .use(ContactList)
  .use(ContactEdit)
  .use(Lazyload, {
    loading: require('./views/Home/img/loading.gif'),
    preLoad: 1.3,
    error: ''
  })
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
